Skip to content

Upgrade Core and Blaze - #931

Merged
jviotti merged 1 commit into
mainfrom
new-deps-alloc
Aug 16, 2026
Merged

Upgrade Core and Blaze#931
jviotti merged 1 commit into
mainfrom
new-deps-alloc

Conversation

@jviotti

@jviotti jviotti commented Aug 16, 2026

Copy link
Copy Markdown
Member

Signed-off-by: Juan Cruz Viotti jv@jviotti.com

Review in cubic

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 92 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="cmake/FindCore.cmake">

<violation number="1" location="cmake/FindCore.cmake:9">
P2: When a build dir is first configured without a sanitizer and then re-configured with JSONBINPACK_ADDRESS_SANITIZER=ON, `set(... CACHE BOOL ...)` without FORCE is a no-op because SOURCEMETA_CORE_USE_SYSTEM_ALLOCATOR is already cached as OFF, so core still links mimalloc (vendor/core/CMakeLists.txt only skips it when this flag AND the sanitizer flags are false). This is a derived value that must track the sanitizer input, so use FORCE so toggling the sanitizer in the same build dir reliably switches core to the system allocator.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread cmake/FindCore.cmake
endif()

if(JSONBINPACK_ADDRESS_SANITIZER OR JSONBINPACK_UNDEFINED_SANITIZER)
set(SOURCEMETA_CORE_USE_SYSTEM_ALLOCATOR ON CACHE BOOL "enable the system allocator")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: When a build dir is first configured without a sanitizer and then re-configured with JSONBINPACK_ADDRESS_SANITIZER=ON, set(... CACHE BOOL ...) without FORCE is a no-op because SOURCEMETA_CORE_USE_SYSTEM_ALLOCATOR is already cached as OFF, so core still links mimalloc (vendor/core/CMakeLists.txt only skips it when this flag AND the sanitizer flags are false). This is a derived value that must track the sanitizer input, so use FORCE so toggling the sanitizer in the same build dir reliably switches core to the system allocator.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At cmake/FindCore.cmake, line 9:

<comment>When a build dir is first configured without a sanitizer and then re-configured with JSONBINPACK_ADDRESS_SANITIZER=ON, `set(... CACHE BOOL ...)` without FORCE is a no-op because SOURCEMETA_CORE_USE_SYSTEM_ALLOCATOR is already cached as OFF, so core still links mimalloc (vendor/core/CMakeLists.txt only skips it when this flag AND the sanitizer flags are false). This is a derived value that must track the sanitizer input, so use FORCE so toggling the sanitizer in the same build dir reliably switches core to the system allocator.</comment>

<file context>
@@ -5,6 +5,12 @@ if(NOT Core_FOUND)
   endif()
 
+  if(JSONBINPACK_ADDRESS_SANITIZER OR JSONBINPACK_UNDEFINED_SANITIZER)
+    set(SOURCEMETA_CORE_USE_SYSTEM_ALLOCATOR ON CACHE BOOL "enable the system allocator")
+  else()
+    set(SOURCEMETA_CORE_USE_SYSTEM_ALLOCATOR OFF CACHE BOOL "disable the system allocator")
</file context>

@augmentcode

augmentcode Bot commented Aug 16, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: This PR upgrades the vendored Sourcemeta Core and Blaze revisions used by JSON BinPack.

Changes:

  • Moves sanitizer setup before runtime and compiler targets are created.
  • Configures Core to retain the system allocator when JSON BinPack sanitizers are enabled.
  • Adds bundled mimalloc integration for supported non-sanitized Core builds, including installation/export support.
  • Adds Core’s line-oriented diff library and uses it to improve multi-line test diagnostics.
  • Expands Core’s process API with input, environment, and captured-output support across Windows and POSIX.
  • Updates Blaze bundling to preserve inherited dialects when elevating embedded resources.
  • Changes embedded meta-schema traversal so document-provided meta-schemas take precedence over resolver results.
  • Makes Blaze exhaustive test templates lazy and cached while retaining eager fast-validation templates.

Technical Notes: The dependency refresh includes the mimalloc source tree and related Core/Blaze build-system changes needed to propagate allocator and sanitizer behavior to downstream targets.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@jviotti
jviotti merged commit 81a75b8 into main Aug 16, 2026
14 checks passed
@jviotti
jviotti deleted the new-deps-alloc branch August 16, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant